package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ElitistMapper;
import com.ruoyi.system.domain.Elitist;
import com.ruoyi.system.service.IElitistService;

/**
 * 百千万人才Service业务层处理
 * 
 * @author wei&wu
 * @date 2024-05-25
 */
@Service
public class ElitistServiceImpl implements IElitistService 
{
    @Autowired
    private ElitistMapper elitistMapper;

    /**
     * 查询百千万人才
     * 
     * @param employeeId 百千万人才主键
     * @return 百千万人才
     */
    @Override
    public Elitist selectElitistByEmployeeId(Long employeeId)
    {
        return elitistMapper.selectElitistByEmployeeId(employeeId);
    }

    /**
     * 查询百千万人才列表
     * 
     * @param elitist 百千万人才
     * @return 百千万人才
     */
    @Override
    public List<Elitist> selectElitistList(Elitist elitist)
    {
        return elitistMapper.selectElitistList(elitist);
    }

    /**
     * 新增百千万人才
     * 
     * @param elitist 百千万人才
     * @return 结果
     */
    @Override
    public int insertElitist(Elitist elitist)
    {
        return elitistMapper.insertElitist(elitist);
    }

    /**
     * 修改百千万人才
     * 
     * @param elitist 百千万人才
     * @return 结果
     */
    @Override
    public int updateElitist(Elitist elitist)
    {
        return elitistMapper.updateElitist(elitist);
    }

    /**
     * 批量删除百千万人才
     * 
     * @param employeeIds 需要删除的百千万人才主键
     * @return 结果
     */
    @Override
    public int deleteElitistByEmployeeIds(Long[] employeeIds)
    {
        return elitistMapper.deleteElitistByEmployeeIds(employeeIds);
    }

    /**
     * 删除百千万人才信息
     * 
     * @param employeeId 百千万人才主键
     * @return 结果
     */
    @Override
    public int deleteElitistByEmployeeId(Long employeeId)
    {
        return elitistMapper.deleteElitistByEmployeeId(employeeId);
    }
}
